package com.lianjie.address.controller;

import com.lianjie.address.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/address")
public class AddressController {
    @Autowired
    private AddressService addressService;
    @RequestMapping("/generateAddress")
    public Boolean generateAddress() throws IOException, InterruptedException {
        return addressService.generateAddress();
    }
}
